import request from '@/utils/request'

export default{
    getVideoById(videoId){
        return request({ 
            url:`/eduservice/video/${videoId}`,
            method:'get'
        });
    },
    addVideo(video){
        return request({ 
            url:`/eduservice/video`,
            method:'post',
            data:video
        });
    },
    updateVideo(video){
        return request({ 
            url:`/eduservice/video`,
            method:'put',
            data:video
        });
    },
    deleteVideo(videoId){
        return request({ 
            url:`/eduservice/video/${videoId}`,
            method:'delete'
        });
    },
    deleteAliyunVideo(id){
        return request({ 
            url:`/vod/video/${id}`,
            method:'delete'
        });
    },
}